package com.ruoyi.goods.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品管理对象 goods
 * 
 * @author cyf
 * @date 2025-01-03
 */
public class Goods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品id */
    private String id;

    /** 商品名 */
    @Excel(name = "商品名")
    private String name;

    /** 图片 */
    @Excel(name = "图片")
    private String images;

    /** 价格 */
    @Excel(name = "价格")
    private String price;

    /** 类别 */
    @Excel(name = "类别")
    private String classes;

    /** 库存 */
    @Excel(name = "库存")
    private String inventory;

    /** 售货机id */
    @Excel(name = "售货机id")
    private String machineId;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setImages(String images) 
    {
        this.images = images;
    }

    public String getImages() 
    {
        return images;
    }
    public void setPrice(String price) 
    {
        this.price = price;
    }

    public String getPrice() 
    {
        return price;
    }
    public void setClasses(String classes) 
    {
        this.classes = classes;
    }

    public String getClasses() 
    {
        return classes;
    }
    public void setInventory(String inventory) 
    {
        this.inventory = inventory;
    }

    public String getInventory() 
    {
        return inventory;
    }
    public void setMachineId(String machineId) 
    {
        this.machineId = machineId;
    }

    public String getMachineId() 
    {
        return machineId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("images", getImages())
            .append("price", getPrice())
            .append("classes", getClasses())
            .append("inventory", getInventory())
            .append("machineId", getMachineId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
